<%--
  Created by IntelliJ IDEA.
  User: wyk
  Date: 2024/8/27
  Time: 14:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="path" value="${pageContext.request.contextPath}"></c:set>
<script src="${path}/static/manage/js/jquery-3.6.0.min.js"></script>
<link type="text/css" href="${path}/static/manage/css/MsgStyle.css"  rel="stylesheet">
<script src="${path}/static/web/js/showParking.js" charset="UTF-8"></script>
<html>
<head>
    <title>查找</title>
</head>
<!--3-->
<body>


<div class="div_container" >
<table style="margin: 50px auto;" id="pageListTable">
    <thead>
    <tr>
        <th>车牌号</th>
        <th>停车区域</th>
        <th>结束时间</th>
        <th>状态</th>
        <th>车位类型</th>
        <th>备注</th>
        <th colspan="2">操作</th>

    </tr>
    </thead>
    <tbody id="pageListTableBody">
    <c:forEach items="${requestScope.AdminParking}" var="d">
        <tr style="align-items: center">
            <td style="align-items: center">${d.car.license}</td>
            <td style="align-items: center">${d.region}</td>
            <td style="align-items: center">${d.endTime}</td>
            <td style="align-items: center">${d.status?"可租":"不可租"}</td>
            <td style="align-items: center">${d.parkingType.typeName}</td>
            <td style="align-items: center">${d.beizhu}</td>
            <td><a class="xiugai" href="${path}/manage/parkingUpdate?id=${d.id}">修改</a></td>
            <td><a href="${path}/manage/deleteParking?id=${d.id}" class="del">删除</a></td>
        </tr>
    </c:forEach>
    </tbody>
    <tfoot>
    <tr>
        <td colspan="8">
            <div id="pages" style="float: right;margin-right: 20px;">
                <span id="spanFirst">首页</span>
                <span id="spanPre">上一页</span>
                <span id="spanNext">下一页</span>
                <span id="spanLast">尾页</span>
                第<strong id="spanPageNum"></strong>页/共
                <strong id="spanTotalPage"></strong>页
            </div>
        </td>
    </tr>
    </tfoot>
</table>
</div>

</body>
</html>
